From 87b351e6e60b1947446ef1225a315eb6a3d4d552 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 25 Nov 2012 15:35:52 +0100 Subject: [PATCH] styleproperty: Use _gtk_css_initial_value_get() See previous commit(s). --- gtk/gtkcssstylepropertyimpl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c index ccd9cc4ba8..a89559f113 100644 --- a/gtk/gtkcssstylepropertyimpl.c +++ b/gtk/gtkcssstylepropertyimpl.c @@ -49,6 +49,7 @@ #include "gtkcssimageprivate.h" #include "gtkcssimagegradientprivate.h" #include "gtkcssimagevalueprivate.h" +#include "gtkcssinitialvalueprivate.h" #include "gtkcssenumvalueprivate.h" #include "gtkcssnumbervalueprivate.h" #include "gtkcsspositionvalueprivate.h" @@ -159,7 +160,7 @@ assign_border (GtkCssStyleProperty *property, const GtkBorder *border = g_value_get_boxed (value); if (border == NULL) - return _gtk_css_value_ref (_gtk_css_style_property_get_initial_value (property)); + return _gtk_css_initial_value_new (); else return _gtk_css_border_value_new (_gtk_css_number_value_new (border->top, GTK_CSS_PX), _gtk_css_number_value_new (border->right, GTK_CSS_PX), -- 2.30.2